import http from './http'

const requestPrefix = '/manage/system/menu'

export const table = (data) => {
  return http.post(`${requestPrefix}/tables`, data)
}
export const show = (data) => {
  return http.post(`${requestPrefix}/show`, data)
}
export const tree = (data) => {
  return http.post(`${requestPrefix}/tree`, data)
}
export const save = (data) => {
  return http.post(`${requestPrefix}/save`, data)
}
export const del = (data) => {
  return http.post(`${requestPrefix}/delete`, data)
}
export const logicalDel = (data) => {
  return http.post(`${requestPrefix}/logicalDelete`, data)
}

export const list = (data) => {
  return http.post(`${requestPrefix}/list`, data)
}